<IfModule mod_proxy_balancer.c>

# Balancer manager enables dynamic update of balancer members
# (needs mod_status). Uncomment to enable.
#
<IfModule mod_status.c>
  <Location /balancer-manager>
    SetHandler balancer-manager
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1 ::1
    Satisfy all
  </Location>
</IfModule>

  <Proxy balancer://lumisportal>
  	<% @javaservers.each do |javaserver| -%>
    BalancerMember ajp://<%= javaserver["ipaddress"] %>:8009 route=<%= javaserver["fqdn"] %> keepalive=On ping=3
    <% end -%>
    ProxySet stickysession=JSESSIONID|jsessionid lbmethod=bytraffic nofailover=On scolonpathdelim=On
  </Proxy>

</IfModule>
